package com.itheima.controller.v1.api;

import com.itheima.common.R;
import com.itheima.dto.ActivityDto;
import com.itheima.pojo.TbActivity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;


@Api("活动相关接口")
public interface ActivityControllerApi {

    @ApiOperation("活动分页展示接口")
    public R list(ActivityDto activityDto);

    @ApiOperation("活动信息回显接口")
    public R findById(@PathVariable Long id);

    @ApiOperation("活动修改接口")
    public R modify(@RequestBody TbActivity tbActivity);

    @ApiOperation("活动删除接口")
    public R remove(@PathVariable Long id);

    @ApiOperation("审核通过接口")
    public R passActivity(@PathVariable Long id);

    @ApiOperation("审核驳回接口")
    public R reject(@PathVariable Long id);

    @ApiOperation("活动添加接口")
    public R add(@RequestBody TbActivity tbActivity);
}
